package org.coolwind.file.action;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.coolwind.core.service.IRoleService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/file.htm")
public class FileAction{
	@Resource
	private IRoleService roleService;
	@RequestMapping(params={"method=upload"},method=RequestMethod.GET)
	public ModelAndView upload(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		System.out.println(request+""+response);
		roleService.save();
		return new ModelAndView("name");
	}
}
